//
//  AXSpellDetailsSecondCollectionCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/11/14.
//  Copyright © 2018 tzhg. All rights reserved.



#import "AXSpellDetailsSecondCollectionCell.h"
#import "UIView+SDAutoLayout.h"
#import "ZXCategories.h"

@interface AXSpellDetailsSecondCollectionCell ()

@end

@implementation AXSpellDetailsSecondCollectionCell

- (id)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    /** imageview */
    self.img = [[UIImageView alloc]init];
    /** 图片比例切 */
    self.img.contentMode =UIViewContentModeScaleAspectFill;
    self.img.clipsToBounds=YES;//
    self.img.cornerRadius = 25;
    [self.contentView addSubview:self.img];
  
    
    
}

- (void)setlayout {
    
    self.img.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView,10)
    .widthIs(50)
    .heightIs(50);
    
  
}

@end

